<include file="public:header" />
<!--会员列表-->
<div class="pad_10" style="overflow:inherit;">
    <form name="searchform" method="get" >
    <table width="100%" cellspacing="0" class="search_form">
        <tbody>
            <tr>
                <td>
                <div class="explain_col">
                    <input type="hidden" name="g" value="admin" />
                    <input type="hidden" name="m" value="topic_item" />
                    <input type="hidden" name="a" value="index" />
                    <input type="hidden" name="menuid" value="{$menuid}" />
            		专题名称：
                    <select name="topic_id">
                        <option value="">请选择</option>
                        <volist name="topic_list" id="val">
                        <option value="{$val.id}" <if condition="$search['topic_id'] eq $val['id']">selected="selected"</if>>{$val.title}</option>
                        </volist>
                    </select>
                    <input type="submit" name="search" class="btn" value="搜索" />
                </div>
                </td>
            </tr>
        </tbody>
    </table>
    </form>

    <div class="J_tablelist table_list" data-acturi="{:U('topic_item/ajax_edit')}">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th width=25><input type="checkbox" id="checkall_t" class="J_checkall"></th>
                <th width="20"><span data-tdtype="order_by" data-field="id">ID</span></th>
                <th align="left">专题名称</th>
                <th align="left">商品名称</th>
                <th width="80"><span data-tdtype="order_by" data-field="ordid">排序值</span></th>
                <th width="150">添加时间</th>
                <th width="120">{:L('operations_manage')}</th>
            </tr>
        </thead>
    	<tbody>
            <volist name="list" id="val" >
            <tr>
                <td align="center"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
                <td align="center">{$val.id}</td>
                <td align="left">
                    <notempty name="val['topic_img']"><span class="attachment_icon J_attachment_icon" file-type="image" file-rel="{:attach($val['topic_img'], 'assets')}"><img src="{:attach($val['topic_img'], 'assets')}" width="30" height="30"/></span></notempty>
                    {$val.topic_name}
                </td>
                <td align="left">
                    <notempty name="val['item_img']"><span class="attachment_icon J_attachment_icon" file-type="image" file-rel="{:attach($val['item_img'], 'assets')}"><img src="{:attach($val['item_img'], 'assets')}" width="30" height="30"/></span></notempty>
                    {$val.item_name}
                </td>
                <td align="center"><span data-tdtype="edit" data-field="ordid" data-id="{$val.id}" class="tdedit">{$val.ordid}</span></td>
                <td align="center">{$val.add_time}</td>
                <td align="center">
                <a href="javascript:void(0);" class="J_confirmurl" data-uri="{:u('topic_item/delete', array('id'=>$val['id']))}" data-acttype="ajax" data-msg="{:sprintf(L('confirm_delete_one'),$val['name'])}">{:L('delete')}</a></td>
            </tr>
            </volist>
    	</tbody>
    </table>
    <div class="btn_wrap_fixed">
        <label class="select_all"><input type="checkbox" name="checkall" class="J_checkall">{:L('select_all')}/{:L('cancel')}</label>
        <input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('topic_item/delete',array('id'=>$r['id']))}" data-name="id" data-msg="{:L('confirm_delete')}" value="{:L('delete')}" />
        <div id="pages">{$page}</div>
    </div>

    </div>
</div>
<include file="public:footer" />
<script>
